//
//  UIButton+extention.swift
//  8.31-WH微博
//
//  Created by 吴涵 on 15/9/11.
//  Copyright © 2015年 wuhan. All rights reserved.
//

import UIKit

extension UIButton {

    convenience init(title: String?, imageName: String, color: UIColor, fontSize: CGFloat) {
        self.init()
        setTitle(title, forState: UIControlState.Normal)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitleColor(color, forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    
    }
}
